import org.apache.lucene.index.Term;




public class Position implements Comparable {
		public Term term;
		public int doc, pos;
		
		public Position(Term t, int d, int p) {
			term = t;
			doc = d;
			pos = p;
		}
		
		public int compareTo(Object other) {
			if (this.pos < ((Position)other).pos)
				return -1;
			else if (this.pos > ((Position)other).pos)
				return 1;
			else
				return 0;
		}
	}
